package com.itzzy.dice;

import com.itzzy.dice.codec.DiceMessageCodec;
import xyz.noark.core.network.PacketCodec;
import xyz.noark.game.bootstrap.BaseServerBootstrap;

/**
 * @author zzy
 * @version 1.0
 * @date 2021/3/23 14:10
 */
public class DiceBootstrap extends BaseServerBootstrap {

    @Override
    protected String getServerName() {
        return "Dice-Game";
    }

    @Override
    protected PacketCodec getPacketCodec() {
        // 由于这个协议是原来人家开源项目里的
        // 所以这里要按人家的规则重写一遍编码解码
        return new DiceMessageCodec();
    }

}
